import { createRouter, createWebHistory } from "vue-router"
import App from './App.vue'
//使用Pages，生成的路由数组正常
import routes from '~pages'
// import { createPinia } from "pinia"
//引入piniaPersist持久化插件
import piniaPersist from 'pinia-plugin-persist'

const router = createRouter({
  history: createWebHistory(),
  routes,
})
const pinia = createPinia()
pinia.use(piniaPersist)

const app = createApp(App)
app
  .use(router)
  .use(pinia)
  .mount("#app");
